package com.java.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController {

	/** 跳转至登陆 */
	@RequestMapping("/login")
	public String toIogin(HttpServletRequest request) {
		request.getSession().invalidate(); // 杀死所有session
		return "login";
	}

	/** 跳转至student首页 */
	@RequestMapping("/student/index")
	public String toStudentindex() {
		return "student/index";
	}
	

	/** 跳转至student首页内容 */
	@RequestMapping("/student/souye")
	public String toStudentSouye() {
		return "student/souye";
	}

	/** 跳转至student设置内容 */
	@RequestMapping("/student/setup")
	public String toStudentSetUp() {
		return "student/setup";
	}

	/** 跳转至student设置内容 */
	@RequestMapping("/student/uppwd")
	public String toStudentSetUpPwd() {
		return "student/uppwd";
	}
	
	

	/** 跳转至查询jianjie页 */
	@RequestMapping("/student/jianjie")
	public String toJianjie() {
		return "student/jianjie";
	}
	
	/** 跳转至shuse页 */
	@RequestMapping("/student/shuse")
	public String toShuse() {
		return "student/shuse";
	}

	/** 跳转至查询xiaoge页 */
	@RequestMapping("/student/xiaoge")
	public String toXiaoge() {
		return "student/xiaoge";
	}

	/** 跳转至查询xiaoxun页 */
	@RequestMapping("/student/xiaoxun")
	public String toXiaoxun() {
		return "student/xiaoxun";
	}

	/** 跳转至查询xueyuanfu页 */
	@RequestMapping("/student/xueyuanfu")
	public String toXueyuanfu() {
		return "student/xueyuanfu";
	}

	/** 跳转至admin首页 */
	@RequestMapping("/admin/index")
	public String toAdminindex() {
		return "admin/index";
	}
	/** 跳转至teacher首页 */
	@RequestMapping("/teacher/index")
	public String toTeacherindex() {
		return "teacher/index";
	}

	/** 跳转至admin基本设置界面 */
	@RequestMapping("/admin/setup")
	public String toAdminSetUp() {
		return "admin/setup";
	}

	/** 跳转至admin基本设置界面 */
	@RequestMapping("/admin/uppwd")
	public String toAdminUpPwd() {
		return "admin/uppwd";
	}

	/** 跳转至查询student页 */
	@RequestMapping("/admin/findstudent")
	public String tofindStudent() {
		return "admin/student";
	}

	/** 跳转至查询college页 */
	@RequestMapping("/admin/findcollege")
	public String tofindCollege() {
		return "admin/college";
	}

	/** 跳转至查询inclass页 */
	@RequestMapping("/admin/findinClass")
	public String tofindInclass() {
		return "admin/Class";
	}

}
